import request from './request'

export const getRoom = () => {
  return request({
    url: 'room1/',
    method: 'GET'
  })
}
export const addRoom = (data) => {
  return request({
    url: 'room2/',
    method: 'POST',
    data
  })
}

export const editRoom = (data) => {
  return request({
    url: 'room3/',
    method: 'post',
    data
  })
}

export const deleteRoom = (id) => {
  return request({
    url: 'room4/',
    method: 'POST',
    data: {
      id
    }
  })
}
